package com.eyas.business.model.jdbcEntity.table;

import com.eyas.core.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Auther: 王龙龙
 * @Date: 2019/3/9 16:08
 * @Description:
 */
@Table("recordinfo")
public class RecordInfo {
    @PrimaryKey(value = "recordid",columnType = ColumnType.INT,columnSize = 8,IsNull = false,inrementType = IncrementType.AUTOINCREMENT)
    private Integer recordid;
    @Column(column = "classid",columnType = ColumnType.INT,IsNull = false)
    private Integer classid;
    @Column(column = "agerange",columnType = ColumnType.STRING,IsNull = true,columnSize = 3)
    private String agerange;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Column(column = "starttime",columnType = ColumnType.DATE,IsNull = true)
    private Date starttime;
    @Column(column = "address",columnType = ColumnType.STRING,IsNull = true,columnSize = 500)
    private String address;
    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    @Column(column = "begintime",columnType = ColumnType.DATE,IsNull = true)
    private Date begintime;
    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    @Column(column = "endtime",columnType = ColumnType.DATE,IsNull = true)
    private Date endtime;
    @Column(column = "details",columnType = ColumnType.TEXT,IsNull = true)
    private String details;
    @Column(column = "maxnum",columnType = ColumnType.INT,IsNull = true)
    private Integer maxnum;
    @Column(column = "currnum",columnType = ColumnType.INT,IsNull = true)
    private Integer currnum;
    @Column(column = "recordhour",columnType = ColumnType.INT,IsNull = true)
    private Integer recordhour;
    @Column(column = "status",columnType = ColumnType.STRING,IsNull = true,columnSize = 1)
    private String status;

    public String getAgerange() {
        return agerange;
    }

    public void setAgerange(String agerange) {
        this.agerange = agerange;
    }

    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Integer getRecordid() {
        return recordid;
    }

    public void setRecordid(Integer recordid) {
        this.recordid = recordid;
    }

    public Integer getClassid() {
        return classid;
    }

    public void setClassid(Integer classid) {
        this.classid = classid;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public Integer getMaxnum() {
        return maxnum;
    }

    public void setMaxnum(Integer maxnum) {
        this.maxnum = maxnum;
    }

    public Integer getCurrnum() {
        return currnum;
    }

    public void setCurrnum(Integer currnum) {
        this.currnum = currnum;
    }

    public Integer getRecordhour() {
		return recordhour;
	}

	public void setRecordhour(Integer recordhour) {
		this.recordhour = recordhour;
	}

	public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
